package com.hhxy.mapper;

import com.hhxy.model.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author ghp
* @description 针对表【tb_category(分类表)】的数据库操作Mapper
* @createDate 2023-04-25 11:58:40
* @Entity generator.model.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 根据分类名查询已逻辑删除的记录
     * @param name
     * @return
     */
    Category selectDeletedCategoryByName(@Param("name") String name);

    /**
     * 根据id修改一逻辑删除的记录
     * @param category
     * @return
     */
    boolean updateDeletedCategoryById(Category category);
}




